package com.testmanager.testmananger.shuiyou.strCompare.respository;

import com.testmanager.testmananger.shuiyou.strCompare.domain.SyCompareScriptKeyEntity;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.Modifying;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface SyCompareScriptKeyRepository extends JpaRepository<SyCompareScriptKeyEntity,Long> {


    List<SyCompareScriptKeyEntity> findAllByScriptIdAndType(String scriptid,int type);

    @Modifying
    Integer deleteAllByScriptId(String scriptno);


}
